home *** CD-ROM | disk | FTP | other *** search
/ Windows 6-Pak - Disc 5 / Windows 6-Pak (InfoMagic) (Disc 5) (1999).ISO / JAVA-Programming-Tools / JDEX.ZIP / jdex / rmvpath.bat < prev    next >
Encoding:
DOS Batch File  |  1998-04-29  |  787 b   |  24 lines

  1. ::
  2. ::    Part of JDEX - Java Development Environment using Explorer
  3. ::
  4. ::    Copyright (c) 1998, by J. Brian Coyle
  5. ::                           mailto:brianc@magicnet.net
  6. ::                           http://www.magicnet.net/~brianc
  7. ::
  8. ::    Refer to JDEX\copyright.txt for additional information.
  9. ::
  10. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  11. ::
  12. ::     rmvpath.bat                03/20/98
  13. ::
  14. ::     removes the path from a filename
  15. ::
  16. ::     REQUIRES:   setfn.bat
  17. ::
  18. if "%1"=="" for %%C in (echo goto:end) do %C Usage is %0 filename
  19. dir /b %1 > %temp%\tempfile.txt
  20. copy /b %jdexpath%\setfn.bat+%temp%\tempfile.txt %temp%\tempfile.bat > nul
  21. call %temp%\tempfile.bat
  22. del %temp%\tempfile.??t
  23. ::  the filename (without a path) is now in %filename%
  24. :end